function doFlashNavigate(strLocation) { bPopExitWindow = 0; if(strLocation.indexOf('adredir.asp')<0) { document.location = strLocation; return; } popwin = window.open("", "", ""); popwin.focus(); popwin.location = strLocation; return; } function popFlashWindow(strUrl, strName, strOpts) { bPopExitWindow = 0; popwin = window.open("", strName, strOpts); popwin.focus(); popwin.location = strUrl; return; } function verifyEmail(email) { if(email.length > 7) { var at = email.indexOf("@"); if((at > 1) && (at==email.lastIndexOf("@"))) { var dot = email.lastIndexOf("."); if ((dot>4) && ((dot-at)>2) && ((email.length-dot)>2)) { return true; // valid! } } } return false; } function forward(theform) { var temptext; temptext = theform.destination.value; if (temptext.length > 0) window.location = temptext; } function mouseOver(strText) { window.status = strText; return true; } function mouseOut() { window.status = ''; return true; } function popup(url, name, height, width, scrollbars) { var popwin; var opts = "toolbar=no,status=no,location=no,menubar=no,resizable=no"; opts += ",height=" + height + ",width=" + width + ",scrollbars=" + scrollbars; popwin = window.open("", name, opts); popwin.focus(); popwin.location = url; } function parentopen(page) { if ( self.opener == null ) { window.open(page, "newwin", "toolbar=yes,status=yes,location=yes,menubar=yes,resizable=yes,scrollbars=yes") } else { self.opener.location = page; self.opener.focus(); } } function verifyContactUs(theform) { var txt; txt = theform.subject.value; if(txt.length<=0) { alert('Subject line is required'); return false; } txt = theform.comments.value; if(txt.length<=0) { alert('A brief description or comment is required'); return false; } if(!verifyEmail(theform.email.value)) { alert('Invalid Email Address'); return false; } var n; for(n=0;n<11;n++) if(theform.content[n].checked) return true; alert('To better help us process your feedback, please indicate a category for your inquiry.'); return false; }